<?php
require_once BACKGROUND_PC_COMMON_ACTION_DIR . '/default.php';

class background_pc_good_category_index_action extends background_pc_default_common_action
{
    protected function _current_page_run()
    {
        //var_dump(__METHOD__); exit();

        $background_good_category_index_action_service = wwy_resource_container::get_background_good_category_index_action_service();
        $background_good_category_index_action_service->process();

        self::$_view_data['add_form_url'] = $this->get_url(array('route' => 'pc_background_good_category_add_form'), true);

        self::$_view_data['title'] = '分类列表';
        self::$_layout_data['view_content'] = $this->_render_view('good_category/index.php');

        //设置【self::$_view_data['page_title']】，用于生成【self::$_layout_data['page_title']】
        self::$_view_data['page_title'] = self::$_view_data['title'];
    }
}